'''
Created on 2012-9-25

@author: null
'''
from service import BaseService
from dao import ThingDataAccess

class ThingService(BaseService):
    def add(self, thing):
        things = ThingDataAccess();
        result = things.add(thing);
        return result;
    
    def get_thing_list(self, user_id, limit_count):
        if limit_count <= 0:
            limit_count = 10;
        things = ThingDataAccess();
        result = things.get_thing_list(user_id, limit_count);

        return result;
